{extend name='public/layout'/}
<!-- 本页面要使用的css开始 -->
{block name='css'}
<link rel="stylesheet" type="text/css" href="__STATIC__/api/css/search.css?v={:time()}" />
{/block}
<!-- 本页面要使用的css结束 -->
<!-- 本页面要使用的js开始 -->
{block name='js'}
<script src="__STATIC__/api/js/search.js" type="text/javascript" charset="utf-8"></script>
{/block}
<!-- 本页面要使用的js结束 -->
<!-- 页面主体开始 -->
{block name='app'}
<header id="header" class="fixed">
	<div class="header-wrap">
		<form>
			<div class="header-inp">
				<input type="text" placeholder="请输入搜索关键词" maxlength="50" autocomplete="on" autofocus="autofocus" class="search-input" v-model="getsearch">
			</div>
			<div class="header-r">
				<a href="javascript:void(0);" class="search-btn" @click="search()">搜索</a>
			</div>
		</form>
	</div>
</header>
<div id="store-wrapper">
	<div class="wrap">
		<dl class="history-list">
			<dt>历史搜索</dt>
			<dd id="search_his_list_container">
				<ul class="clearfix">
					<li v-for="(getsearch,index) in history">
						<a href="javascript:void(0);" @click="toGoodsDetail(getsearch)">{{getsearch}}</a>
					</li>
				</ul>
				<a href="javascript:void(0);" class="clear-history" @click="hisHistory()">
					<i></i>
					清空历史搜索
				</a>
			</dd>
		</dl>
	</div>
</div>
{/block}
